package com.cdck.safe.dete.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cdck.safe.dete.model.entity.Laboratory;
import com.cdck.safe.dete.model.query.BaseKeywordsQuery;
import com.cdck.safe.dete.model.query.BaseQuery;


/**
 * (Laboratory)表服务接口
 *
 * @author wp
 * @since 2024-02-25 15:40:15
 */
public interface LaboratoryService extends IService<Laboratory> {


    /**
     * 分页列表
     *
     * @return
     */
    IPage<Laboratory> queryByPage(BaseKeywordsQuery queryParams);


    /**
     * 获取表单数据
     *
     * @param id
     * @return
     */
    Laboratory getLaboratoryFormData(Long id);

    /**
     * 新增数据
     *
     * @param laboratory Laboratory对象
     * @return
     */
    boolean saveLaboratory (Laboratory laboratory);

   /**
     * 修改数据
     *
     * @param id   id
     * @paramlaboratory Laboratory对象
     * @return
     */
    boolean updateLaboratory(Long id, Laboratory laboratory);

    /**
     * 删除数据
     *
     * @param idsStr id,多个以英文逗号(,)分割
     * @return
     */
    boolean deleteLaboratorys(String idsStr);

}
